package com.acme;

import com.acme.domain.account.SavingsAccount;
import com.acme.domain.client.Client;
import com.acme.domain.client.Gender;
import com.acme.domain.email.Email;
import com.acme.domain.email.service.EmailService;

class BankApplication {
	public static void main(String[] args) {
		Client john = new Client(new SavingsAccount(30),Gender.MALE,"John");		
		EmailService.getEmailService( new Email(john,"john@mymail.com"));
		try {
			Thread.sleep(7000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		EmailService.close();
	}
}